<?php

class Logs extends CI_Controller {

	var $page = "logs";

	var $action  = '';

	public function index(){
		//$this->createLog();
		$query = $this->db->query("select l.createdon as log_createdon,  action ,affected_table , description , CONCAT(u.firstname , ' ', u.lastname ) as user_createdby from logs  as l , users as u where l.createdby = u.id and l.valid = 1 order by l.id desc");
		$data['usertype'] = 'Client';
		$this->admin($data,$query);
	}




}
